package com.wangzhixuan.service.impl;

import com.wangzhixuan.model.Production;
import com.wangzhixuan.mapper.ProductionMapper;
import com.wangzhixuan.service.IProductionService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户角色 服务实现类
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-06-24
 */
@Service
public class ProductionServiceImpl extends ServiceImpl<ProductionMapper, Production> implements IProductionService {
    @Autowired
    private ProductionMapper productionMapper;
    
	@Override
	public Page<Production> selectPageProduction(Page<Production> page, Production production) {
		// TODO Auto-generated method stub
		 page.setRecords(productionMapper.selectPageProduction(page,production));
	     return page;
	}
	
	@Override
	public Page<Production> selectPageProductionForList(Page<Production> page, Production production) {
		// TODO Auto-generated method stub
		 page.setRecords(productionMapper.selectPageProductionForList(page,production));
	     return page;
	}
	
	public int getProductionNumByManKey(String manKey) {
		// TODO Auto-generated method stub
		return productionMapper.getProductionNumByManKey(manKey);
	}
	
}
